<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div><span id="box">hello world</span></div>
</body>
<script>
    let box = document.getElementById("box");
    box.onmouseover = function (event) {
        console.log("鼠标悬浮");
    }

</script>
</html>